package com.lplpok.lplpokmod;

import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.event.CreativeModeTabEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber(modid = lplpokmod.MODID,bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModCreativeTabs {
    public static CreativeModeTab lplpokmod_Tab;
    @SubscribeEvent

    public static void registerCreativeModeTabs(CreativeModeTabEvent.Register event){
        lplpokmod_Tab = event.registerCreativeModeTab(new ResourceLocation(lplpokmod.MODID,"lplpokmod")
        ,builder -> builder.icon(()->new ItemStack(lplpokmod_items.iron_gold_ingot.get()))
                        .title(Component.translatable("itemGroup.lplpokmod")));
    }
}
